package top.jiangqiang.qyblog.core.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 通过图片地址上传文件
 *
 * @author jiangqiang
 * @date 2022-12-16
 */
@Accessors(chain = true)
@Data
@Schema(name = "通过访问地址上传文件相关接口请求参数", description = "")
public class UploadByUrlDto {
    @Schema(description = "存储器id，为空则使用默认存储器")
    private Long storageId;
    @Schema(description = "是否同步上传，默认异步")
    private Boolean isSync;
    @Schema(description = "文件访问地址")
    @NotBlank(message = "文件URL不能为空")
    private String url;
}
